<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>作业管理系统</title>
    <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.6.8/css/layui.css">
    <script src="https://www.layuicdn.com/layui-v2.6.8/layui.js"></script>
    <style>
        .container {
            width: 100%;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f2f2f2;
        }
        .content {
            text-align: center;
            padding: 30px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .role-buttons {
            display: flex;
            gap: 20px;
            margin-top: 30px;
        }
        .layui-btn {
            height: 120px;
            width: 160px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .role-icon {
            font-size: 36px;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="content">
            <h1 class="layui-font-20">作业管理系统</h1>
            <div class="role-buttons">
                <a href="${pageContext.request.contextPath}/teacher/assignment/list" 
                   class="layui-btn layui-btn-normal">
                    <i class="layui-icon layui-icon-user role-icon"></i>
                    教师端
                </a>
                <a href="${pageContext.request.contextPath}/student/assignment/list" 
                   class="layui-btn layui-btn-primary">
                    <i class="layui-icon layui-icon-read role-icon"></i>
                    学生端
                </a>
                <a href="${pageContext.request.contextPath}/admin/students" 
                   class="layui-btn layui-btn-danger">
                    <i class="layui-icon layui-icon-set role-icon"></i>
                    管理员端
                </a>
            </div>
        </div>
    </div>
    
    <script>
        layui.use(['layer'], function(){
            var layer = layui.layer;
            
            // 添加点击效果
            $('.layui-btn').click(function(){
                layer.msg('正在跳转...', {icon: 1});
            });
        });
    </script>
</body>
</html> 